<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 200px;
            height: 50px;
            border: 1px solid red;
            /*文本水平对齐方式*/
            text-align: center;
            /*文本修饰 overline underline line-through*/
            text-decoration: line-through;
            /*text-decoration: overline;*/
            /*text-decoration: underline;*/
            /*设置行高，单行文本时可以实现垂直剧中，多行文本可以控制行间距*/
            line-height: 50px;
            /*设置文本阴影:颜色   x偏移值 y偏移值 模糊度*/
            text-shadow: hotpink 18px 18px 5px;
            /*设置字体大小*/
            font-size: 20px;
            /*设置加粗*/
            font-weight: bold;
            /*斜体*/
            font-style: italic;
            /*字体*/
            font-family: cursive;
        }
        h3{
            font-weight: normal;/*去掉加粗*/
            font: 30px cursive;
        }
        a{
            text-decoration: none;/*去掉下划线*/
        }
    </style>
</head>
<body>
    <h3>这是h3</h3>
    <a href="">超链接</a>
    <div>文本和字体相关</div>
</body>
</html>